const Mock = require('mockjs')

let data = Mock.mock({
  'list|1-10': [
    {
      'id|+1': 1
    }
  ],
  'name|1-100': 100,
  'number|1-100.1-10': 1,
  'boolean|1-2': true,
  'object|2': {
    '3001': '上海',
    '2002': '北京',
    '3004': '江苏'
  },
  'array|1': [
    'AMD',
    'CMD',
    'UMD'
  ]
})

console.log(JSON.stringify(data, null, 4))